# -*- coding: utf-8 -*-
# @Time : 2021/9/1 17:51
# @Author : 唐宁
# @Site : 
# @File : ErrorCodeEnum.py
# @Software: PyCharm
from enum import Enum


class ErrorCodeEnum(Enum):
    # 校验类枚举
    INVALID_PARAMS = (9001, "参数错误")
    SIGN_ERROR = (8001, "签名异常")
    # 文件类型枚举
    FILE_BIG = (7001, "文件过大")
    # 普通返回枚举
    OK = (200, "请求通过")
    NO = (201, "请求不通过")
    TIP = (202, "特殊提示")
    ERROR = (9999, "系统异常")

    def __init__(self, code, msg):
        self.code = code
        self.msg = msg

    def get_code(self):
        return self.code

    def get_msg(self):
        return self.msg
